Switching regulator with variable compensation

ABSTRACT

A switching regulator circuit includes a power stage and a compensation network. The compensation network includes a programmable transconductance (g m ), having a first selectable transconductance such a closed loop transfer function of the switching regulator circuit may be characterized by a first transfer function having a having a first DC open loop gain and a first bandwidth, and by a second transfer function having a second DC open loop gain and a second bandwidth.

CROSS REFERENCE TO RELATED APPLICATIONS

The present disclosure claims priority to U.S. Provisional App. No. 61/511,549 filed Jul. 26, 2012, the content of which is incorporated herein by reference in its entirety for all purposes.

BACKGROUND

Unless otherwise indicated herein, the approaches described in this section are not prior art to the claims in this application and are not admitted to be prior art by inclusion in this section.

Step down DC-DC voltage regulators are common components in modern electronic devices. The buck converter is a popular device for converting a higher voltage source to a lower voltage level that can be used by the electronics components in an electronic device. Typical input voltages may range from 4.6V to 16V, and typical output voltages may range from 0.8V to 5V. A buck converter comprises power stage and a feedback compensation network. The power stage generates a switched signal and typically includes an output filter to smooth out the output voltage. The feedback compensation network may regulate the output voltage by varying the duty cycle of the power stage.

The dynamic response of a voltage regulator informs the circuit designer how the circuit will behave. The dynamic response may be represented by the closed loop transfer function of the voltage regulator. The bandwidth, which is sometimes defined from DC to the cutoff frequency, tells how quickly the circuit will respond to changes in the output voltage during operation of the circuit. The DC open loop gain tells how accurate the circuit will be in compensating for changes in the output voltage; for example, whether the circuit will overshoot or undershoot, ringing, and so on. Acceptable performance of the circuit depends on being able to control or otherwise design for these parameters.

SUMMARY

In some embodiments, a circuit comprises a switching power circuit configured for connection to an input voltage. The switching power circuit provides an output that can be supplied as an output voltage to a load. The circuit further comprises a programmable compensation circuit having a selectable transconductance (g_(m)). The compensation circuit is connected to the output voltage and provides feedback to the switching power circuit. The compensation circuit can be configured in a first configuration characterized by a transfer function having a first DC open loop gain and a first bandwidth. The compensation circuit can be configured in a second configuration characterized by a transfer function having a second DC open loop gain and a second bandwidth.

In some embodiments, the compensation circuit includes a programmable transconductance amplifier having a selectable g_(m). An input value may be provided to select the g_(m) of the transconductance amplifier.

In some embodiments, compensation circuit includes a programmable voltage divider.

In some embodiments, the compensation circuit includes a programmable RC filter.

In some embodiments, the circuit is incorporated in a buck converter.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a high level block diagram of a switching regulator circuit in accordance with the present disclosure.

FIG. 2 shows some circuit details of a switching regulator circuit in accordance with some embodiments.

FIG. 2A illustrates an example of a programmable transconductance amplifier.

FIG. 3 shows an equivalent circuit diagram of the circuit illustrated in FIG. 2.

FIG. 4 represents Bode plots of the transfer functions of a power stage and a compensation stage of the circuit illustrated in FIG. 2.

FIG. 5 represents a Bode plot of a closed loop transfer function of the circuit illustrated in FIG. 2.

FIG. 6 represents a Bode plot where the pole P₁ and the zero Z₂ are made equal.

DETAILED DESCRIPTION

Disclosed embodiments relate to switching regulators having a programmable compensation network. In the following description, for purposes of explanation, numerous examples and specific details are set forth in order to provide a thorough understanding of the present invention. It will be evident, however, to one skilled in the art that the present invention as defined by the claims may include some or all of the features in these examples alone or in combination with other features described below, and may further include modifications and equivalents of the features and concepts described herein.

Referring to FIG. 1, a switching regulator circuit 100 may receive an input voltage V_(in) and produce an output voltage V_(out). The output voltage V_(out) may be used to drive a load 112. In accordance with embodiments of the present invention, the switching regulator circuit 100 may include a switching power circuit 102 which receives the input voltage V_(in). The input voltage V_(in) may range from 4.5V to 16V; however, other voltage levels are possible of course. The switching power circuit 102 may output a switching signal SW that is supplied, via a filter 106, to the load 112 as the output voltage V_(out). In some embodiments, the switching signal SW is a square wave. The switching power circuit 102 and filter 106 may be collectively referred to as the “power stage.”

In accordance with the present disclosure, a programmable compensation network 104 may compensate for variations in the output voltage V_(out) that may result from variations in the load 112, temperature fluctuation, and so on. In some embodiments, for example, the programmable compensation network 104 may provide a feedback control signal which feeds into the switching power circuit 102 to the control the duty cycle of the switching signal SW, thereby regulating the output voltage V_(out).

In some embodiments, the switching regulator circuit 100 is a buck regulator, where the output voltage V_(out) is less than the input voltage V_(in). As will be explained below, the output voltage V_(out) can be readily programmed by the user to different operating voltages. In accordance with principles of the present disclosure, the programmable compensation network 104 can ensure stable circuit operation for each of the different operating voltages.

Referring to FIG. 2, in some embodiments, the switching regulator circuit 100 comprises two components: device 202 and external filter 206. The device 202 may be provided as an integrated circuit (IC) device. The external filter 206, as the name suggests, comprises components that are typically too large or impractical to fabricate on the IC device 202 and thus may be provided external to the IC device (off-chip). The external filter 206 may be any suitable design. For example, FIG. 2 shows the external filter 206 comprises a diode D (e.g., a Schottky diode), an inductor L, and an output capacitor C_(o) configured in a pi network. The figure also includes a resistor R_(ESR) which represents the total equivalent series resistance (ESR) of the output capacitor C_(o), which is sometimes referred to as the parasitic resistance. The load 112 is represented by resistor R_(loadnd).

The device 202 may include the switching power circuit 102 (FIG. 1) and the programmable compensation network 104. In some embodiments, the switching power circuit 102 may be a current mode control switching power circuit. For example, the switching power circuit 102 may comprise a switch M₁, a current sense amplifier 212, a summing circuit 214, a comparator 216, and an RS flip-flop 218.

The switch M₁ may have an input for a connection to the input voltage V_(in). The switch M₁ may be controlled by a switching control signal V_(switch) to produce the switching signal SW. In an embodiment, for example, the switch M₁ may be a field effect transistor (FET) device. A source terminal S of the FET M₁ may be connected to the input voltage V_(in). A gate terminal G of the FET M₁ may be connected to a source of the switching control signal V_(switch) to produce the switching signal SW, which may be obtained from the drain terminal D of switch M₁.

The current sense amplifier 212 may be connected to the switch M₁ to sense the current flow through the inductor L on each switching cycle. For example, the current sense amplifier 212 may be connected to the source S and drain D terminals of the FET M₁ to sense current flow through the FET, which effectively senses the current flow through the inductor L. An output resistor R_(sense) may be provided at an output of the current sense amplifier 212 to produce a current sense voltage V_(isns). The summing circuit 214 may combine the current sense voltage V_(isns) with a slope compensation signal V_(slope) obtained from a voltage ramp generator (not shown). In some embodiments, the voltage ramp generator (not shown) may be provided on-chip (i.e., fabricated on the device 202), and in other embodiments the voltage ramp generator may be provided off-chip. The output of the summing circuit 214 is a ramp signal V_(ramp).

The ramp signal V_(ramp) may be connected to an input of the comparator 216. In some embodiments, for example, the ramp signal V_(ramp) is connected to a non-inverting input of the comparator 216. Since the ramp signal V_(ramp) is based on the current flow through switch M₁, the ramp signal represents a current mode feedback signal. Another feedback control signal, produced in the programmable compensation network 104 (discussed below), may connect to another input of the comparator 216 (e.g., an inverting input). As will be explained below, the feedback control signal produced in the programmable compensation network 104 is a voltage mode feedback signal. An output of the comparator 216 may drive an RS flip-flop 218 in accordance with the current mode feedback signal (V_(ramp)) and the voltage mode feedback signal. In particular, the output of the comparator 216 may drive the RESET input of the RS flip-flop. A clock signal CLK may feed into the SET input of the RS flip-flop 218. The clock signal CLK may be provided on-chip or off-chip. An output Q of the RS flip-flop 218 may be connected to the switch M₁ to serve as the switching control signal V_(switch) for the switch, and in particular the switching control signal controls the duty cycle of the switch. In an embodiment, the output Q may be connected to the gate terminal G of FET M_(f).

In some embodiments, the programmable compensation network 104 may comprise a programmable resistor network 222, a programmable transconductance amplifier 224, and a programmable RC filter 226. The programmable resistor network 222 may be configured as a voltage divider, and connected to the output voltage V_(out) to generate a feedback voltage V_(fb) that is proportional to V_(out). Accordingly, the programmable resistor network 222 may also be referred to as a programmable feedback divider. An input value R-setting may be provided off-chip; e.g., by a user, another circuit, etc. In some embodiments, for example, the input value R-setting may be a four-bit data value used to configure the programmable resistor network 222 with one out of sixteen possible voltage divider ratios (taps), D_(r); although more or less bits may be provided. The level of the output voltage V_(out) may be selected by programming the programmable resistor network 222 using the input value R-setting.

In accordance with principles of the present disclosure, the programmable compensation network 104 includes a programmable transconductance amplifier 224. The programmable transconductance amplifier 224 may include a pair of differential inputs 224 a, 224 b. The feedback voltage V_(fb) from the programmable resistor network 222 may be connected to an inverting input 224 a. A reference voltage V_(ref) may be connected to a non-inverting input 224 b. In some embodiments, the reference voltage V_(ref) may be about 0.8V, and may be provided from an on-chip source or the reference source may be off-chip.

In some embodiments, the programmable transconductance amplifier 224 may be programmed using the input value R-setting, as depicted in FIG. 2. In particular, the transconductance (g_(m)) value of the programmable transconductance amplifier 224 is programmable. In other embodiments, a second input value other than the input value R-setting may be used to program the programmable transconductance amplifier 224. The second input value may have the same, or a different, number of bits of resolution as the input value R-setting.

Referring for a moment to FIG. 2A, an illustrative embodiment of the programmable transconductance amplifier 224 is shown. The particular circuit shown in the figures shows an operational transconductance amplifier (OTA). A steering resistor sets the transconductance g_(m) of the OTA. More particularly, the steering resistor may be programmable thereby allowing the transconductance g_(m) of the OTA to be determined according to the input value R-setting.

Completing the circuit description of FIG. 2, an output V_(c) of the programmable transconductance amplifier 224 may connect to the programmable RC filter 226. The programmable RC filter 226 may be programmed, for example, via a programmable resistor R_(c). Programmable resistors, such as the resistor R_(c) and the steering resistor in FIG. 2A, are known devices. Any of numerous known suitable designs may be used.

The output V_(c) of the programmable transconductance amplifier 224 may serve as the feedback control signal that feeds into the comparator 216, as described above. As will be explained below, the programmable compensation network 104 of the present disclosure facilitates selection of the operating output voltage V_(out). In addition, the programmable compensation network 104 facilitates improving the bandwidth of the switching regulator circuit 100 (e.g., having a high crossover frequency) thereby improving circuit response time. The programmable compensation network 104 also facilitates improving accuracy of the switching regulator circuit 100 by maximizing the circuit DC open loop gain without creating instability. In accordance with principles of the present disclosure, both bandwidth and DC open loop gain can be improved without trading off one for the other.

As can be seen from FIG. 2, the output voltage V_(out) can be set by setting the voltage divider ratio D_(r) of the programmable resistor network 222. V_(out) relates to V_(fb) by the relation V_(fb)=V_(out)×D_(r). By operation of the feedback loop of the programmable compensation network 104, the programmable transconductance amplifier 224 will drive the output voltage V_(out) to maintain V_(fb)=V_(ref). Therefore, the output voltage V_(out) can be determined from

$V_{out} = {\frac{V_{ref}}{D_{r}}.}$

For example, assuming V_(ref) is 0.8V, V_(out) can be set to 0.8V, 1.6V, 2V, and 3.2V by providing the programmable resistor network 222 with selectable divider ratios D_(r) of 1, 0.5, 0.4, and 0.25, respectively. If the input value R-setting is a two-bit value, then the setting “00” may be used to set the divider ratio D_(r) to 1, the setting “01” may be used to set the divider ratio to 0.5, the setting “10” may be used to set the divider ratio to 0.4, and the setting “11” may be used to set the divider ratio to 0.25.

In operation, the clock signal CLK causes the switch M₁ to produce a switching signal SW which is filtered by the external filter 206 to produce the output voltage V_(out). The output voltage V_(out) can then be supplied to the load 112. The output voltage V_(out) is fed back to the programmable transconductance amplifier 224 via the programmable resistor network 222 as feedback voltage V_(fb), and compared against the reference voltage V_(ref). The programmable transconductance amplifier 224 will produce an output voltage, namely the control voltage V_(c). The RC filter 226 smooths out fluctuations in the control voltage V_(c). The control voltage V_(c) feeds into the comparator 216, thus forming a voltage controlled feedback loop.

In the power stage, the current sense amplifier 212 effectively senses the current flow through the inductor L, and produces a voltage level that is proportional to the sensed current, namely, the current sense voltage V_(isns). The current sense voltage V_(isns) is combined with the slope compensation signal V_(slope) to produce V_(ramp), which feeds into the comparator 216 thus forming a current controlled feedback loop.

In the beginning of a switching period, the control voltage V_(c) is higher than V_(ramp), since V_(fb) is 0V. This will cause the output of the comparator 216 to be LO, taking the RS flip-flop 218 out of reset. The clock signal CLK will turn the switch M₁ ON. As current begins to flow through switch M₁ and inductor L, the current sense voltage V_(isns) (and hence V_(ramp)) will begin to ramp up. At the same time, the current flow will cause V_(fb) to ramp up as well. When V_(fb)=V_(ref), the control voltage V_(c) will go to 0V. When V_(ramp)≧V_(c), the comparator 216 will go HI and put the RS flip-flop 218 in reset, thus turning the switch M₁ OFF.

As the current flow through the inductor drops, V_(fb) will decay and fall below V_(ref). This will cause the control voltage V_(c) to once again become higher than V_(ramp), thus repeating the cycle. Setting the voltage divider ration D_(r) determines the ON and OFF switching times of the switch M₁, and hence the duty cycle of the switching signal SW.

Referring to FIG. 3, the discussion will now consider the bandwidth characteristic of the switching regulator circuit 100 (which relates to circuit response time) and the DC open loop gain of the switching regulator circuit (which relates to accuracy of circuit operation). The diagram in FIG. 3 represents an equivalent circuit of the switching regulator circuit 100. Accordingly, an equivalent circuit of the power stage may be represented by a current source G, (which represents the sense amp 212), the output capacitor C_(o) and its equivalent series resistance R_(ESR), and the load 112. An equivalent circuit of the programmable compensation network 104 may be represented by the programmable resistor network 222, the programmable transconductance amplifier 224, and the programmable RC filter 226.

Consider first, the DC open loop gain of the switching regulator circuit 100. The open loop transfer function TF_(power) of the power stage may be represented by:

$\begin{matrix} {{{TF}_{power} = {G_{i}{R_{load} \cdot \frac{1 + {{sC}_{o}R_{ESR}}}{1 + {{sC}_{o}R_{load}}}}}},} & {{Eqn}.\mspace{14mu} 1} \end{matrix}$

where

G_(i) is the current sense gain of the current sense amplifier 212,

R_(load) is the value of the load 112,

C_(o) is the values of the output capacitor C_(o), and

R_(ESR) is the value of the equivalent series resistance R_(ESR).

The inductor L is associated with an equivalent resistance, sometimes referred to as the DC resistance (DCR). However, its resistance is sufficiently small that it can be ignored for purposes of the following analysis.

The open loop transfer function TF_(compensation) of the programmable compensation network 104 may be represented by:

$\begin{matrix} {{{TF}_{compensation} = {{\frac{V_{ref}}{V_{out}} \cdot g_{m}}{r_{o} \cdot \frac{1 + {{sC}_{c}R_{c}}}{1 + {{sC}_{c}r_{o}}}}}},} & {{Eqn}.\mspace{14mu} 2} \end{matrix}$

where

V_(ref) is the voltage level of the reference voltage V_(ref),

V_(out) is the voltage level of the output voltage V_(out),

g_(m) is the transconductance of the transconductance amplifier 224,

r_(o) is the output resistance of the transconductance amplifier 224,

C_(c) is the value of the capacitor C_(c) in the filter 226, and

R_(c) is the value of the resistor R_(c) in the filter 226.

Recall from above that

$V_{out} = \frac{V_{ref}}{D_{r}}$

so the ratio

$\frac{V_{ref}}{V_{out}}$

represents the voltage divider ratio D_(r) of the programmable resistor network 222.

The closed loop transfer function TF_(closedloop) of the switching regulator circuit 100 may be defined according to:

$\begin{matrix} {{{TF}_{closedloop} = {{TF}_{power} \cdot {TF}_{compensation}}},} & {{{Eqn}.\mspace{14mu} 3}a} \\ {{{TF}_{cloasedloop} = {G_{i}{R_{load} \cdot \frac{1 + {{sC}_{o}R_{ESR}}}{1 + {{sC}_{o}R_{load}}} \cdot \frac{V_{ref}}{V_{out}} \cdot g_{m}}{r_{o} \cdot \frac{1 + {{sC}_{c}R_{c}}}{1 + {{sC}_{c}r_{o}}}}}},} & {{{Eqn}.\mspace{14mu} 3}b} \end{matrix}$

where the DC terms can be collected to produce:

$\begin{matrix} {{TF}_{cloasedloop} = {G_{i}{R_{load} \cdot \frac{V_{ref}}{V_{out}} \cdot g_{m}}{r_{o} \cdot \frac{1 + {{sC}_{o}R_{ESR}}}{1 + {{sC}_{o}R_{load}}} \cdot {\frac{1 + {{sC}_{c}R_{c}}}{1 + {{sC}_{c}r_{o}}}.}}}} & {{{Eqn}.\mspace{14mu} 3}c} \end{matrix}$

As can be seen from Eqn. 3c, the closed loop transfer function of the switching regulator circuit 100 has a DC open loop gain A_(DC) given by:

$\begin{matrix} {A_{DC} = {G_{i}{R_{load} \cdot \frac{V_{ref}}{V_{out}} \cdot g_{m}}{r_{o}.}}} & {{Eqn}.\mspace{14mu} 4} \end{matrix}$

Consider next the bandwidth of the switching regulator circuit 100. The discussion begins with the closed loop transfer function TF_(closedloop) of the switching regulator circuit 100 as expressed in Eqn. 3b. Since the output resistance r_(o) of the transconductance amplifier 224 is typically high (in principle, infinite), Eqn. 3b can be simplified by first rearranging some terms in the equation:

$\begin{matrix} {{TF}_{cloasedloop} = {G_{i}{R_{load} \cdot \frac{1 + {{sC}_{o}R_{ESR}}}{1 + {{sC}_{o}R_{load}}} \cdot {\quad{\frac{V_{ref}}{V_{out}}{g_{m} \cdot \left( {1 + {{sC}_{c}R_{c}}} \right) \cdot {\frac{r_{o}}{1 + {{sC}_{c}r_{o}}}.}}}}}}} & {{{Eqn}.\mspace{14mu} 5}\; a} \end{matrix}$

Then, assuming C_(c)r_(o)>>1, the following approximation can be made:

$\begin{matrix} {\frac{r_{o}}{1 + {{sC}_{c}r_{o}}} \approx {\frac{1}{{sC}_{c}}.}} & {{{Eqn}.\mspace{14mu} 5}\; b} \end{matrix}$

The closed loop transfer function TF_(closedloop) can then be approximated by:

$\begin{matrix} {{TF}_{cloasedloop} \approx {G_{i}{R_{load} \cdot \frac{1 + {{sC}_{o}R_{ESR}}}{1 + {{sC}_{o}R_{load}}} \cdot {\quad{\frac{V_{ref}}{V_{out}}{\cdot g_{m} \cdot {\frac{1 + {{sC}_{c}R_{c}}}{{sC}_{c}}.}}}}}}} & {{{Eqn}.\mspace{14mu} 5}\; c} \end{matrix}$

Turning for a moment to FIGS. 4-6, FIG. 4 shows Bode plots of the power stage transfer function (Eqn. 1) and the compensation network transfer function (Eqn. 2). From Eqn. 1, the power stage transfer function TF_(power) has a pole P₁ defined at:

$\begin{matrix} {P_{1} = \frac{1}{C_{o}R_{load}}} & {{{Eqn}.\mspace{14mu} 6}\; a} \end{matrix}$

and a zero Z₁ defined at:

$\begin{matrix} {Z_{1} = {\frac{1}{C_{o}R_{ESR}}.}} & {{{Eqn}.\mspace{14mu} 6}\; b} \end{matrix}$

Likewise, from Eqn. 2, the compensation network transfer function TF_(compensation) has a pole P₂ defined at:

$\begin{matrix} {P_{2} = \frac{1}{C_{o}r_{o}}} & {{{Eqn}.\mspace{14mu} 7}\; a} \end{matrix}$

and a zero Z₂ defined at:

$\begin{matrix} {Z_{2} = {\frac{1}{C_{c}R_{c}}.}} & {{{Eqn}.\mspace{14mu} 7}\; b} \end{matrix}$

FIG. 5 shows the Bode plot for the closed loop transfer function (Eqn. 3c) of the switching regulator circuit 100. As can be seen in the Bode plot of FIG. 5, between P₁ and Z₂ there is a −40 dB slope which indicates a range of frequencies, namely

${f_{P\; 1} = {{\frac{P_{1}}{2\; \pi}\mspace{14mu} {and}\mspace{14mu} f_{Z\; 2}} = \frac{Z_{2}}{2\; \pi}}},$

where the switching regulator circuit 100 may exhibit unstable operation. However, if pole P_(i) of the power stage transfer function (Eqn. 1) and the zero Z₂ of the compensation network transfer function (Eqn. 2) are set equal to each other, then stable operation across the full bandwidth of the switching regulator circuit 100 can be obtained. The resulting Bode plot is shown in FIG. 6, where the zero Z₂ has been made equal to the pole P₁.

Returning to Eqn. 5c, when P₁=Z₂, it can be shown from Eqn. 5c that the closed loop DC gain of the switching regulator circuit 100 may be expressed as:

$\begin{matrix} {{{closed}\mspace{14mu} {loop}\mspace{14mu} {DC}\mspace{14mu} {gain}} = {G_{i}{R_{load} \cdot \frac{V_{ref}}{V_{out}} \cdot g_{m}}{R_{c}.}}} & {{Eqn}.\mspace{14mu} 8} \end{matrix}$

It can be further shown that the crossover frequency ω₀ may be expressed as:

$\begin{matrix} {{\frac{\omega_{0}}{P_{1}} = {G_{i}{R_{load} \cdot \frac{V_{ref}}{V_{out}} \cdot g_{m}}R_{c}}},} & {{{Eqn}.\mspace{14mu} 9}\; a} \end{matrix}$

and substituting Eqn. 6a:

$\begin{matrix} {\omega_{0} = {G_{i}{R_{load} \cdot \frac{V_{ref}}{V_{out}} \cdot g_{m}}{R_{c} \cdot \frac{1}{C_{o}R_{load}}}}} & {{{Eqn}.\mspace{14mu} 9}\; b} \\ {\omega_{0} = {{G_{i} \cdot \frac{V_{ref}}{V_{out}} \cdot g_{m}}{R_{c} \cdot {\frac{1}{C_{o}}.}}}} & {{{Eqn}.\mspace{14mu} 9}\; c} \end{matrix}$

Eqn. 9c, therefore, represents the bandwidth ω₀ of the switching regulator circuit 100.

The switching regulator circuit 100 of the present disclosure may therefore be characterized by a closed loop transfer function that has a DC open loop gain A_(DC) that can be expressed with Eqn. 4 and a bandwidth ω₀ that can be expressed with Eqn. 9c, both of which are reproduced below as Eqns. 10 and 11 respectively:

$\begin{matrix} {{A_{DC} = {G_{i}{R_{load} \cdot \frac{V_{ref}}{V_{out}} \cdot g_{m}}r_{o}}},} & {{Eqn}.\mspace{14mu} 10} \\ {\omega_{0} = {{G_{i} \cdot \frac{V_{ref}}{V_{out}} \cdot g_{m}}{R_{c} \cdot {\frac{1}{C_{o}}.}}}} & {{Eqn}.\mspace{14mu} 11} \end{matrix}$

Referring back to FIG. 2, since the g_(m) of the programmable transconductance amplifier 224 is programmable, then programming the g_(m) will affect both A_(DC) and ω₀. In addition, since the term

$\frac{V_{ref}}{V_{out}}$

is equal to D_(r), then programming the voltage divider ratio D_(r) of the programmable resistor network 222 also will affect both A_(DC) and ω₀. FIG. 2 further shows that the input value R-setting may be used to program suitable values for both g_(m) and D_(r). In accordance with principles of the present disclosure, values of g_(m) are inversely related to corresponding values of D_(r); as g_(m) decreases, corresponding values of D_(r) increase. Thus, as a lower value of D_(r) is selected to set a higher output voltage V_(out), a higher value for g_(m) is selected for the programmable transconductance amplifier 224. Conversely, as a higher value of D_(r) is selected to set a lower output voltage V_(out), a lower value for g_(m) is selected for the programmable transconductance amplifier 224.

Referring to Eqns. 10 and 11, the inverse relation between g_(m) and D_(r) is advantageous because setting the input value R-setting to select a higher operating output voltage V_(out) (hence a lower D_(r)) will tend to reduce the DC open loop gain A_(DC) of the switching regulator circuit 100 and the bandwidth ω₀ of the switching regulator circuit. A lower DC open loop gain results in reduced accuracy in compensating for changes to V_(out). A narrower bandwidth results in a slower response time in responding to changes in V_(out). However, in accordance with the present disclosure, an R-setting that selects a higher operating output voltage V_(out) also selects an increased g_(m) value, thereby offsetting the tendency to reduce both A_(DC) and ω₀ using the same control, namely, g_(m).

Conversely, setting the input value R-setting to select a lower operating output voltage V_(out) (hence a higher D_(r)) will tend to increase both A_(DC) and ω₀. An increased A_(DC) may results in unstable operation when compensating for changes to V_(out). However, in accordance with the present disclosure, an R-setting that selects a lower operating output voltage V_(out) also decreases g_(m), thereby offsetting the tendency to increase A_(DC).

The specific selectable values for g_(m) and D_(r), and the resolution of the input value R-setting (i.e., number of bits) are design choices that depend on factors not relevant to the present disclosure. Accordingly, a discussion about specific values for g_(m) and D_(r) are beyond the scope of the present disclosure.

Referring again to FIG. 2, in a typical usage case, a circuit designer may design their switching regulator circuit using an IC device comprising device 202, and providing their own components for external filter 206 to drive load 112. In a particular embodiment, for example, suppose the input value R-setting is a four-bit input. The programmable transconductance amplifier 224 and programmable network resistor 222 will have, respectively, sixteen selectable g_(m) values (e.g., g₀ to g₁₅, where g₀<g₁, g₁<g₂, . . . g₁₄<g₁₅) and sixteen selectable D_(r) values (e.g., D₀ to D₁₅, where D₀>D₁, D₁>D₂, . . . D₁₄>D₁₅). In some embodiments, the programmable resistor R_(c) in the RC filter 226 may be programmed on-chip, in the factory. For example, the programmable resistor R_(c) may comprise fusible links that are “blown” at the time of manufacture to obtain a certain fixed resistance value.

The circuit designer may decide on a suitable output voltage level V_(out) for their design, and suitable component values for the external filter 206. The circuit designer may then select the closest D_(r) that will give them their designed V_(out). For example, the circuit designer may use the relationship

${V_{out} = \frac{V_{ref}}{D_{r}}},$

where V_(ref) is a known value (e.g., 0.8V) to determine D_(r) and hence the correct value for the input value R-setting. When the circuit designer enters the R-setting value into the device 202, the programmable resistor network 222 may then be configured to provide the selected D_(r). In accordance with the present disclosure, the entered R-setting value will also serve to configure the programmable transconductance amplifier 224 with a value for g_(m) that is selected by the entered R-setting value. In a particular embodiment, for example, the entered R-setting value may be stored in a static memory (not shown) on the device 202. When the device 202 is powered, the R-setting value may be read from the static memory and used to program or otherwise configure both the programmable resistor network 222 and the programmable transconductance amplifier 224. Thus, by using one parameter, R-setting, the operating output voltage V_(out) of the switching regulator circuit can be selected, while at the same time maximizing the DC open loop gain as well as the bandwidth.

The above description illustrates various embodiments of the present invention along with examples of how aspects of the present invention may be implemented. The above examples and embodiments should not be deemed to be the only embodiments, and are presented to illustrate the flexibility and advantages of the present invention as defined by the following claims. Based on the above disclosure and the following claims, other arrangements, embodiments, implementations and equivalents will be evident to those skilled in the art and may be employed without departing from the spirit and scope of the invention as defined by the claims. 

1. A circuit comprising: a switching power circuit having a first input for a connection to an input voltage and having a second input, the switching power circuit further having an output to supply an output voltage to a load; and a programmable compensation circuit having a selectable transconductance (g_(m)) and comprising an input section for a connection to the load to receive the output voltage across the load and an output section connected to the second input of the switching power circuit to provide a control signal to the switching power circuit, the programmable compensation circuit having a first selectable g_(m) wherein a closed loop transfer function of the circuit is represented by a first transfer function having a first DC open loop gain and a first bandwidth, the programmable compensation circuit having at least a second selectable g_(m) wherein the closed loop transfer function of the circuit is represented by a second transfer function having a second DC open loop gain and a second bandwidth.
 2. The circuit of claim 1 wherein the programmable compensation circuit further comprises a programmable transconductance amplifier having a g_(m) that sets the g_(m) of the programmable compensation circuit, wherein the g_(m) of the programmable transconductance amplifier is selectable.
 3. The circuit of claim 2 further comprising an input to receive an input value to select the g_(m) of the programmable transconductance amplifier.
 4. The circuit of claim 3 wherein the input section of the programmable compensation circuit comprises a programmable voltage divider, wherein the input value serves to select the g_(m) and a voltage divider ratio of the programmable voltage divider.
 5. The circuit of claim 1 wherein the input section of the programmable compensation circuit comprises a programmable resistor network.
 6. The circuit of claim 5 wherein the programmable resistor network is a voltage divider, the circuit further comprising an input to receive an input value to program a voltage divider ratio of the voltage divider.
 7. The circuit of claim 6 wherein the input value is further to program a transconductance (g_(m)) of the programmable compensation circuit.
 8. The circuit of claim 1 wherein the output section of the programmable compensation circuit comprises a programmable RC filter.
 9. The circuit of claim 1 further comprising a filter circuit connected between the output of the switching power circuit and the load, wherein the filter circuit filters an output of the switching power circuit to produce the output voltage supplied to the load.
 10. The circuit of claim 1, wherein the circuit is configured as a buck converter.
 11. A method in a circuit comprising: receiving an input voltage at a switching power circuit; producing an output of the switching power circuit to be supplied to load as an output voltage; accessing a user-provided input value; using the input value to configure a programmable compensation network with a selectable transconductance (g_(m)); receiving at an input section of the programmable compensation network the output voltage across the load; and providing an output from an output section of the programmable compensation network as a control signal to the switching power circuit, wherein the programmable compensation circuit has a first selectable g_(m) wherein a closed loop transfer function of the circuit is represented by a first transfer function having a first DC open loop gain and a first bandwidth, wherein the programmable compensation circuit has at least a second selectable g_(m) wherein the closed loop transfer function of the circuit is represented by a second transfer function having a second DC open loop gain and a second bandwidth.
 12. The method of claim 11 wherein the programmable compensation circuit further comprises a programmable transconductance amplifier having a selectable g_(m) that sets the g_(m) of the programmable compensation circuit, the method further comprising selecting a g_(m) of the programmable transconductance amplifier using the input value.
 13. The method of claim 12 wherein the input section of the programmable compensation circuit comprises a programmable voltage divider, the method further comprising also using the input value to select a voltage divider ratio of the programmable voltage divider.
 14. The method of claim 11 wherein the input section of the programmable compensation circuit comprises a programmable resistor network.
 15. The method of claim 14 wherein the programmable resistor network is a voltage divider, the method further comprising programming a voltage divider ratio of the voltage divider using the input value.
 16. The method of claim 11 wherein the output section of the programmable compensation circuit comprises a programmable RC filter.
 17. The method of claim 11 further comprising providing the output of the switching power circuit to a filter circuit and supplying an output of the filter circuit as the output voltage to the load. 